<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<div class="block small center login">
    <div class="block_head">
        <div class="bheadl"></div>
        <div class="bheadr"></div>
        <h2>Login</h2>
        <ul>
            <li><a href="<%=request.getContextPath()%>">back to the site</a></li>
        </ul>
    </div>
    <!-- .block_head ends -->

    <div class="block_content clearfix">
        <logic:notEmpty name="errorMessage" >
            <div class="message errormsg"><p><bean:write name="errorMessage"/></p></div>
        </logic:notEmpty>
        <html:form styleClass="validate-form" action="admin/login.do">
            <p class="relative">
                <html:hidden property="action" value="login"/>
                <label>Username:</label> <br/>
                <html:text property="username" styleClass="text required"
                           title="Please enter your username"/>
            </p>
            <p class="relative">
                <label>Password:</label> <br/>
                <html:password property="password" styleClass="text required"
                               title="Please enter your password"/>
            </p>
            <p>
                <html:submit styleClass="submit" value="Login"/>&nbsp;
                <html:checkbox property="remember" styleId="remember" value="yes"/> <label
                    for="remember">Remember me</label>
                <label><html:link action="/admin/forgotPassword.do">Forgot password?</html:link></label>
            </p>
        </html:form>
    </div>
    <!-- .block_content ends -->
    
    <div class="bendl"></div>
    <div class="bendr"></div>
    
</div>
<!-- .login ends -->